home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
HamCall (October 1991)
/
HamCall (Whitehall Publishing)(1991).bin
/
bcast
/
bcstcble
/
boxloss.bas
< prev
next >
Wrap
BASIC Source File
|
1990-10-14
|
2KB
|
64 lines
100 ' *************** BOX LOSS CALCULATOR **********************
110 '
120 ' FORMULAS FROM THE LOUDSPEAKER DESIGN COOKBOOK BY VANCE DICKENSON
130 ' PROGRAM WRITTEN 9/87 BY C. HOFFMAN
140 KEY OFF:CLS
150 PRINT" BOX LOSS CALCULATOR"
160 PRINT:PRINT:PRINT
170 PRINT"YOU WILL NEED TO MEASURE IMPEDANCE AT VARIOUS FREQUENCYS AND"
180 PRINT"HAVE THE VALUES OF QMS, QES, QTS, FS, AND DCR FOR THE DRIVER."
190 PRINT"THESE CAN BE OBTAINED IN PART ONE OF THE PROGRAM LOUDSP.EXE."
200 PRINT"OR THE LOUDSPEAKER DESIGN COOKBOOK, OR ONE OF THE WEEMS' BOOKS."
210 PRINT
220 PRINT"PLOT AN IMPEDANCE CURVE FROM 20 TO 100 HZ. & ANSWER THE FOLLOWING:"
230 PRINT:PRINT
240 INPUT"ENTER FREQUENCY OF LOWEST IMPEDANCE PEAK";FL
250 PRINT
260 PRINT"ENTER THE FREQUENCY OF THE LOWEST PART OF THE CURVE BETWEEN"
270 PRINT"THE TWO MAJOR PEAKS. THIS FREQUENCY MAY BE MORE ACCURATELY"
280 PRINT"DETERMINED BY MONITORING THE WOOFER OUTPUT WITH A SOUND LEVEL"
290 PRINT"METER, AND NOTING THE FREQUENCY OF MINIMUM OUTPUT."
300 INPUT FM
310 PRINT
320 INPUT"ENTER FREQUENCY OF NEXT IMPEDANCE PEAK";FH
330 CLS
340 PRINT
350 INPUT"ENTER Z AT IMPEDANCE DIP";R0
360 PRINT
370 FB=FM
380 INPUT"ENTER DRIVER DC RESISTANCE IN OHMS";RE
390 PRINT
400 INPUT"ENTER DRIVER FREE AIR RES.";FS
410 PRINT
420 INPUT"ENTER DRIVER MECHANICAL Q (Qms)";QMS
430 PRINT
440 INPUT"ENTER DRIVER ELECTRICAL Q (Qes)";QES
450 PRINT
460 INPUT"ENTER DRIVER TOTAL Q (Qts)";QTS
470 PRINT:PRINT
480 FSB=FL*FH/FB
490 RM=R0/RE
500 QMSB=(FS/FSB)*QMS
510 QESB=(FS/FSB)*QES
520 QTSB=(FS/FSB)*QTS
530 HA=FB/FSB
540 AA=(FH^2-FB^2)*(FB^2-FL^2)/(FH^2*FL^2)
550 QL=(HA/AA)*((1/(QESB*(RM-1)))-(1/QMSB))
560 PRINT USING"LOSS (QL)= ##.##";QL
570 PRINT:PRINT:PRINT
580 PRINT"IF LOSS FIGURE DOES NOT AGREE WITH ORIGINAL DESIGN TARGET,"
590 PRINT"RETURN TO THE DESIGN TABLES TO DETERMINE NEW BOX SIZE AND"
600 PRINT"TUNING."
610 PRINT:PRINT
620 PRINT"HIT R TO REPEAT OR X TO EXIT"
630 A$=INKEY$
640 IF A$="" THEN 630
650 IF A$="R" OR A$="r" THEN 100
660 IF A$="X" OR A$="x" THEN 680
670 GOTO 630
680 KEY ON
690 END
="" THEN 630
650 IF A$="R" OR A$="r" THEN 100
660 IF A$="X" OR A$="x" THEN 680
670